package com.springapp.repository;

import com.springapp.model.User;
import org.springframework.data.repository.CrudRepository;
import org.springframework.data.repository.query.Param;

public interface UserRepository extends CrudRepository<User, Integer> {

    public User findByLoginAndPassword(@Param("login") String login, @Param("password") String password) throws UnsupportedOperationException;

    public User findByKey(@Param("key") String key);
}
